import os

prefix = 'gg'
suffix = '@knlib.com'
a = 0
# for i in range(1, 51):
for i in [7, 28]:
    # if i in [1, 7, 28, 41]:
    #     continue
    a += 1
    # if 180 < i < 189:
    #     continue
    emailId = prefix + str(i).zfill(2) + suffix
    jar_cmd = 'java -Doperation.name=redis ' + '-DemailId=' + emailId + ' -Drun.in.aws=true -jar  toredis.jar'
    cmd = 'nohup ' + jar_cmd + ' > ' + './redis_log/' + emailId + "_redis" + ".log &"
    print(cmd)
    # os.system(cmd)
print(a)
# os.system()
